/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-09-11
 * Time: 10:22
 */
public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
        System.out.print("前序遍历：");
        binaryTree.preOrder(root);
        System.out.println();
        System.out.print("中序遍历：");
        binaryTree.inOrder(root);
        System.out.println();
        System.out.print("后序遍历：");
        binaryTree.postOrder(root);
    }
}
